import form from '../form';
const Select = {
  props:{
    filter:String
  },
  mounted(){
    this.$nextTick(()=>{
      if(this.filter){
        form.render('select',this.filter);
      }else{        
        form.render('select');
      }
    });
  },
  render() {
    return (
      <select lay-filter={this.filter}>{this.$slots.default}</select>
    );
  }
};

export default Select;